83e82786c12294eea4c4e1091e0d7b7f2ff2af53,src/main/java/org/sqlite/RS.java,RS,getDate,#number#Calendar#,251

Before Change


    }

    public Date getDate(int col, Calendar cal) throws SQLException {
        if (db.column_type(stmt.pointer, markCol(col)) == SQLITE_NULL)
            return null;
        if (cal == null)
            return getDate(col);
        cal.setTimeInMillis(db.column_long(stmt.pointer, markCol(col)));
        return new Date(cal.getTime().getTime());
    }

After Change


    }

    public Date getDate(int col, Calendar cal) throws SQLException {
    	int data_type = db.column_type(stmt.pointer, markCol(col));
        if (data_type == SQLITE_NULL)
            return null;
        if (cal == null)
            return getDate(col);
        if (data_type == SQLITE_INTEGER) {
	        cal.setTimeInMillis(db.column_long(stmt.pointer, markCol(col)) * DATE_INT_MULTIPLIER);
	        return new Date(cal.getTime().getTime());
        }
        if (data_type == SQLITE_TEXT) {
			try {
				DateFormat df2 = (DateFormat) df.clone();
				df2.setCalendar(cal);
				return new java.sql.Date(df2.parse(db.column_text(stmt.pointer, markCol(col))).getTime());
			} catch (Exception e) {
				return null;
			}
        }
        if (data_type == SQLITE_FLOAT) {
        	return new Date(julianDateToCalendar(db.column_double(stmt.pointer, markCol(col)), cal).getTimeInMillis());
        }
        return null;
    }

    public Date getDate(String col) throws SQLException {